package com.github.ecbp.user.service.request;

import com.github.ecbp.common.req.BaseIdDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;


@Data
@ApiModel
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AdminReq extends BaseIdDTO {
    @ApiModelProperty(value = "用户手机号", required = true)
    @NotEmpty
    private String loginPhone;
    @ApiModelProperty(value = "用户名", required = true)
    @NotEmpty
    private String username;
    @ApiModelProperty(value = "密码", notes = "新增:不需要传; 修改:不传则不修改")
    @Size(min = 8)
    private String password;
    @ApiModelProperty(value = "用户头像")
    private String icon;
    @ApiModelProperty(value = "备注")
    private String note;
    /**
     * 帐号启用状态：0->禁用；1->启用
     */
    private Integer status;
}
